home *** CD-ROM | disk | FTP | other *** search
/ Workbench Add-On / Workbench Add-On - Volume 1.iso / BBS-Archive / Comm / AmiTCP30b2.lha / src / appl / napsaterm / amiga.h next >
C/C++ Source or Header  |  1994-05-14  |  2KB  |  92 lines

  1. /* $Id: amiga.h,v 3.3 1994/05/12 10:06:22 ppessi Exp $
  2.  *
  3.  * amiga.h --- Amiga specific thingies to niftyterm
  4.  *
  5.  * Copyright 1991 Pekka Pessi
  6.  * All Rights Reserved
  7.  * Permission is granted to copy, modify, and use this as long
  8.  * as this notice remains intact.  This is a nifty program.
  9.  *
  10.  * DISCLAIMER: the author (and maintainer) of this program is not responsible
  11.  * for any damage or other problems caused by it.
  12.  *
  13.  */
  14.  
  15. #ifndef INCLUDED_AMIGA_H
  16. #define INCLUDED_AMIGA_H
  17.  
  18. #include <exec/types.h>
  19. #include <exec/memory.h>
  20. #include <dos/dos.h>
  21. #include <dos/dosextens.h>
  22. #include <devices/timer.h>
  23.  
  24. #ifndef NAPSA_CONFIG_H
  25. #include "config.h"
  26. #endif
  27.  
  28. #if USE_RLOGIN
  29. /* we are kludging around the devices/timer.h braindamage */
  30. #include <sys/time.h>
  31. #endif
  32.  
  33. /* Correct prototype for the CheckIO.
  34.  * (The one in clib/exec_protos.h had wrong return value type: BOOL (16 bits) 
  35.  * instead of a pointer (32 bits)!)
  36.  */
  37. struct IORequest * CheckIO(struct IORequest *req);
  38.  
  39. extern struct Library *TimerBase; /* funny type, but SAS got it like this... */
  40.  
  41. extern struct timerequest *timereq;
  42. extern struct MsgPort *timeport;
  43.  
  44. #ifdef USE_PRAGMAS
  45. #include <clib/exec_protos.h>
  46. extern struct ExecBase *SysBase;
  47. #include <pragmas/exec_sysbase_pragmas.h>
  48.  
  49. #include <proto/timer.h>
  50.  
  51. #include <proto/graphics.h>
  52. #include <proto/dos.h>
  53. #include <proto/utility.h>
  54. #include <proto/icon.h>
  55. #endif
  56.  
  57. #ifdef USE_INLINE
  58. extern struct Library *TimerBase;
  59. extern struct DosLIbrary *DOSBase;
  60. extern struct GfxBase *GfxBase;
  61. extern struct IntuitionBase *IntuitionBase;
  62. extern struct DiskfontBase *DiskfontBase;
  63. extern struct Library *IconBase;
  64.  
  65. #include <inline/exec.h>
  66. #include <inline/timer.h>
  67. #include <inline/graphics.h>
  68. #include <inline/dos.h>
  69. #include <inline/utility.h>
  70. #include <inline/icon.h>
  71. #endif
  72.  
  73. #ifdef USE_CLIB
  74. extern struct Library *TimerBase;
  75. extern struct DosLIbrary *DOSBase;
  76. extern struct GfxBase *GfxBase;
  77. extern struct IntuitionBase *IntuitionBase;
  78. extern struct DiskfontBase *DiskfontBase;
  79. extern struct Library *IconBase;
  80.  
  81. #include <clib/exec_protos.h>
  82. #include <clib/timer_protos.h>
  83. #include <clib/graphics_protos.h>
  84. #include <clib/dos_protos.h>
  85. #include <clib/utility_protos.h>
  86. #include <clib/icon_protos.h>
  87. #endif
  88.  
  89. /* #include <clib/alib_protos.h> */
  90.  
  91. #endif /* ndef INCLUDED_AMIGA_H */
  92.